package com.ruoyi.members.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 基层工会对象 sys_grassroots_trade_unions
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_grassroots_trade_unions")
public class SysGrassrootsTradeUnions extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 工会主键id */
    @Excel(name = "工会ID")
    @TableId(value = "unions_id", type = IdType.AUTO)
    private Long unionsId;

    /** 工会名称 */
    @Excel(name = "工会名称")
    private String unionsName;

    /** 创建时间 */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新时间 */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    /** 删除标识 0未删除 2已删除 */
    private String delFlag;

    public void setUnionsId(Long unionsId) 
    {
        this.unionsId = unionsId;
    }

    public Long getUnionsId() 
    {
        return unionsId;
    }

    public void setUnionsName(String unionsName) 
    {
        this.unionsName = unionsName;
    }

    public String getUnionsName() 
    {
        return unionsName;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("unionsId", getUnionsId())
            .append("unionsName", getUnionsName())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
